package com.yingxin.yxerp.module.permission.vo.resp;

import com.yingxin.yx.framework.commons.vo.CommonRespVo;
import com.yingxin.yx.framework.user.dto.PermissionDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author fanchao
 * @since 2021-05-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RoleRespVo对象", description = "角色")
public class AppRoleRespVo extends CommonRespVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "角色名称")
    private String name;

    @ApiModelProperty(value = "状态 0-禁用 1-启用")
    private String status;

    @ApiModelProperty(value = "排序值")
    private String sort;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("角色权限")
    private List<PermissionDto> permissions;

    @ApiModelProperty("角色权限ids")
    private List<String> permissionIds;

    private String userAdded;


}
